package edu.gyc.test;

public class HiBreak {
    public static void main(String[] args) {
        int i=0;
        while (true) {

            try {
                Thread.sleep(100);
            } catch (InterruptedException e) {
                e.printStackTrace();
            }
            System.out.println("开始干活");

            while (true){
                i++;
                System.out.println(i);
                if(i%5==0){
                    System.out.println("i="+i+" 休息一下");break;
                }
            }
            if(i==100){
                System.out.println("i="+i+" 下班了");break;
            }
        }
    }
}
